package com.fast.fastenjoy.components.common.action;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.fast.fastenjoy.base.web.action.BaseAction;
import com.fast.fastenjoy.components.common.domain.MapPosition;
import com.fast.fastenjoy.components.common.manager.MapPositionManager;

/**
 * 地图位置控制器
 * @author chenliaohua
 *
 */
@Controller
@RequestMapping("/mapPosition")
public class MapPositionAction extends BaseAction{

	private static final long serialVersionUID = -2038725362297366289L;

	@Autowired
	private MapPositionManager mapPositionManager;
	
	@RequestMapping("/getVicinityMapPosition")
	public void getVicinityMapPosition(){
		List<MapPosition> list = mapPositionManager.getAll();
		toJson(list);
	}
	
}
